export const platforms = [{
		name: '抖音',
		icon: '/static/icon8.png'
	},
	{
		name: '哔哩哔哩',
		icon: '/static/home_app_ico_bilibili.png'
	},
	{
		name: 'Sharechat',
		icon: '/static/home_app_ico_sharechat.png'
	},
	{
		name: 'Snapchat',
		icon: '/static/home_app_ico_snapchat.png'
	},
	{
		name: 'Telegram',
		icon: '/static/home_app_ico_telegram.png'
	},
	{
		name: 'Youtube',
		icon: '/static/home_app_ico_youtube.png'
	},
	{
		name: 'Soundcloud',
		icon: '/static/home_app_ico_soundcloud.png'
	},
	{
		name: 'Pinterest',
		icon: '/static/home_app_ico_pinterest.png'
	},
	{
		name: 'Instagram',
		icon: '/static/home_app_ico_insstagram.png'
	},
	{
		name: 'Vimeo',
		icon: '/static/home_app_ico_vimeo.png'
	},
	{
		name: 'Twitter',
		icon: '/static/home_app_ico_twitter.png'
	},
	{
		name: 'TED',
		icon: '/static/home_app_ico_ted.png'
	},
	{
		name: 'Imgur',
		icon: '/static/home_app_ico_imgur.png'
	},
	{
		name: '微博',
		icon: '/static/home_app_ico_weibo.png'
	},

	{
		name: 'pearvideo',
		icon: '/static/home_app_ico_pearvideo.png'
	},
	{
		name: '美拍',
		icon: '/static/home_app_ico_meipai.png'
	},
	{
		name: 'itemfix',
		icon: '/static/home_app_ico_itemfix.png'
	},
	{
		name: 'facebook',
		icon: '/static/home_app_ico_facebook.png'
	},
	{
		name: 'veoh',
		icon: '/static/home_app_ico_veoh.png'
	},



	{
		name: '皮皮虾',
		icon: '/static/home_app_ico_pipixia.png'
	},

	{
		name: '百度视频',
		icon: '/static/home_app_ico_baidu.png'
	},
	{
		name: '知乎',
		icon: '/static/home_app_ico_zhihu.png'
	},
	{
		name: 'timeline',
		icon: '/static/home_app_ico_timeline.png'
	},
	{
		name: '火山',
		icon: '/static/home_app_ico_huoshan.png'
	},
	{
		name: '酷狗',
		icon: '/static/home_app_ico_kugou.png'
	},
	{
		name: '豆瓣',
		icon: '/static/home_app_ico_douban.png'
	},
	{
		name: 'ifeng',
		icon: '/static/home_app_ico_ifeng.png'
	},
	{
		name: '酷我音乐',
		icon: '/static/home_app_ico_kuwo.png'
	},
	{
		name: '陌陌',
		icon: '/static/home_app_ico_momo.png'
	},
	{
		name: 'IMDB',
		icon: '/static/home_app_ico_imdb.png'
	},
	{
		name: '腾讯视频',
		icon: '/static/home_app_ico_tencent.png'
	},
	{
		name: '网易云音乐',
		icon: '/static/home_app_ico_wangyiyun.png'
	},
	{
		name: '微视',
		icon: '/static/home_app_ico_weishi.png'
	},
	{
		name: '糖豆',
		icon: '/static/home_app_ico_tangdou.png'
	},
	{
		name: 'Naver',
		icon: '/static/home_app_ico_nawer.png'
	},
	{
		name: '9News',
		icon: '/static/home_app_ico_9news.png'
	},
	{
		name: 'indavideo',
		icon: '/static/home_app_ico_indavideo.png'
	},

	{
		name: 'TikTok',
		icon: '/static/home_app_ico_tiktok.png'
	},
	{
		name: 'Mega',
		icon: '/static/home_app_ico_mega.png'
	},
	{
		name: '1TV',
		icon: '/static/home_app_ico_1tv.png'
	},
	{
		name: 'Aparat',
		icon: '/static/home_app_ico_aparat.png'
	},
	{
		name: 'Wikia',
		icon: '/static/home_app_ico_wikia.png'
	},
	{
		name: 'Twitch',
		icon: '/static/home_app_ico_twitch.png'
	},
	{
		name: '西瓜视频',
		icon: '/static/home_app_ico_xigua.png'
	}
]



/**
 * 将时间戳转换为日期和时间字符串
 * @param {number} timestamp - 时间戳（毫秒）
 * @param {string} format - 输出格式，例如 'YYYY-MM-DD HH:mm:ss'
 * @returns {string} 格式化后的日期和时间字符串
 */
export  function formatDate(timestamp, format = 'YYYY-MM-DD HH:mm:ss') {
    const date = new Date(timestamp);

    const year = date.getFullYear();
    const month = String(date.getMonth() + 1).padStart(2, '0'); // 月份从 0 开始
    const day = String(date.getDate()).padStart(2, '0');
    const hours = String(date.getHours()).padStart(2, '0');
    const minutes = String(date.getMinutes()).padStart(2, '0');
    const seconds = String(date.getSeconds()).padStart(2, '0');

    return format
        .replace('YYYY', year)
        .replace('MM', month)
        .replace('DD', day)
        .replace('HH', hours)
        .replace('mm', minutes)
        .replace('ss', seconds);
}

// 示例用法
const timestamp = Date.now(); // 获取当前时间的时间戳
const formattedDate = formatDate(timestamp);
console.log(formattedDate); // 输出：2024-10-03 14:30:45（根据当前时间）
